<?php


namespace App\Http\Controllers;

use App\Services\DictDataService;

/**
 * 字典数据管理-控制器
 * @author aaron
 * @since 2020/11/11
 * Class DictController
 * @package App\Http\Controllers
 */
class DictDataController extends Backend
{
    /**
     * 构造函数
     * @author aaron
     * @since 2020/11/11
     * DictController constructor.
     */
    public function __construct()
    {
        parent::__construct();
        $this->service = new DictDataService();
    }

    /**
     * 根据Code获取字典
     * @return mixed
     * @since 2021/7/12
     * @author aaron
     */
    public function getDictByCode()
    {
        return $this->service->getDictByCode();
    }


    /**
     * 根据Code获取字典数据项
     * @return mixed
     * @since 2021/7/12
     * @author aaron
     */
    public function getDictDataByCode()
    {
        return $this->service->getDictDataByCode();
    }

}
